﻿@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <style type="text/css">
        body, html,#allmap {width: 100%;height: 100%;overflow: hidden;margin:0;}
        .BMap_bubble_title font { color:orange !important;background-color:transparent !important;}
        .BMap_bubble_content { font-size:12px;}
        .BMap_pop img[title="发送到手机"] { display:none !important;}
        #baiduMap{width: 100%;height: 100%;}
    </style>
    <script src="/Scripts/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=711e9064953268e700928acff42c7a8f"></script>
    <script src="/Scripts/bDMapAPI.js"></script>
    <script type="text/javascript">
        $(function () {
            var filter = $("#hidFilter").val();
            if (filter == 1) {
                getBDMap(@(Request["ll"]), "当前位置是@(Request["estatename"])", "baiduMap");
            } else if (filter == 2) {
                getBDMap(@(Request["ll"]), "当前位置是@(Request["estatename"])", "baiduMap", { mapType: BMAP_PERSPECTIVE_MAP }, "北京市");
            } else if (filter == 3) {
                getBDMap(@(Request["ll"]), "当前位置是@(Request["estatename"])", "baiduMap", { mapType: BMAP_HYBRID_MAP });
            } else if (filter == 4) {
                getBDMapAll(@(Request["ll"]), "baiduMap");
            } else {
                getBDMap(@(Request["ll"]), "当前位置是@(Request["estatename"])", "baiduMap");
            }

        });
</script>
<title>百度地图展示</title>
</head>
    <body>
        <input type="hidden" id="hidFilter" value="@ViewData["filter"].ToString()"/>
        <div id="baiduMap"></div>
    </body>
</html>
